package com.mpsc.spring.demo;

import com.mpsc.spring.demo.config.FilterFileConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan(value = "com.mpsc.spring.demo.dao")
public class SpringDemoApplication {

    private  static FilterFileConfig filterFileConfig;

    @Autowired
    public void setFilterFileConfig(FilterFileConfig filterFileConfig) {
        this.filterFileConfig = filterFileConfig;
    }

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringDemoApplication.class, args);
        filterFileConfig.FileFilter("D:\\kdxf");
    }

}
